angular.module('starter.controllers')
  .controller('pdfViewController', function ($scope, pdfViewFactory) {
    $scope.$on('$ionicView.afterEnter', function () {
      var pdfPath = "/storage/emulated/0/zend.pdf";
      cordova.plugins.androidShowPDFPlugin.showPDF(pdfPath, function (success) {}, function (error) {
        console.error(error);
      })
    });

  })
